home *** CD-ROM | disk | FTP | other *** search
- class Key
- {
- var BACKSPACE // Constant associated with the key code value for the Backspace key (8).
- var CAPSLOCK // Constant associated with the key code value for the Caps Lock key (20).
- var CONTROL // Constant associated with the key code value for the Control key (17).
- var DELETEKEY // Constant associated with the key code value for the Delete key (46).
- var DOWN // Constant associated with the key code value for the Down Arrow key (40).
- var END // Constant associated with the key code value for the End key (35).
- var ENTER // Constant associated with the key code value for the Enter key (13).
- var ESCAPE // Constant associated with the key code value for the Escape key (27).
- var HOME // Constant associated with the key code value for the Home key (36).
- var INSERT // Constant associated with the key code value for the Insert key (45).
- var LEFT // Constant associated with the key code value for the Left Arrow key (37).
- var PGDN // Constant associated with the key code value for the Page Down key (34).
- var PGUP // Constant associated with the key code value for the Page Up key (33).
- var RIGHT // Constant associated with the key code value for the Right Arrow key (39).
- var SHIFT // Constant associated with the key code value for the Shift key (16).
- var SPACE // Constant associated with the key code value for the Spacebar (32).
- var TAB // Constant associated with the key code value for the Tab key (9).
- var UP // Constant associated with the key code value for the Up Arrow key (38).
-
- function addListener(newListener) // Registers an object to receive notification when the onKeyDown and onKeyUp methods are invoked.
- function getAscii() // Returns the ASCII value of the last key pressed.
- function getCode() // Returns the virtual key code of the last key pressed.
- function isDown(keycode) // Returns true if the key specified in the parameter is pressed.
- function isToggled(keycode) // isToggled()
- function removeListener(listener) // Removes an object that was previously registered with Key.addListener().
- }
-